To make radio buttons do anything first set them then call:


$("input[type='radio']").checkboxradio("refresh");


To fix double select



        $('brokenSelect').each(function () {
            $(this).replaceWith($('<select/>').html($(this).html()));
            console.log("found brokenSelect");
        });
 
 
        $('seltest').selectmenu();
 


To set the value of an input tag

 $('input[id=ing1Name]').val($.getCookie("ing1Name"))

To get a radio button in control set


Do not use the control set click




$("input[name=radio-choice]").each(function () {
            if ($(this).is(':checked')) {
                achoice =$(this).val();
            }
        });

To open a second popup


$('#popupCall').popup('close');
        window.setTimeout(function () { $('#popupFollow').popup('open') }, 50);













code

code